<?php
/**
 * Created by PhpStorm
 * User: Jhinwy
 * Date: 5/9/24
 * Time: 3:28 PM
 */

namespace app\common\model\jump;

use app\common\model\auth\Admin;
use app\common\model\BaseModel;
use app\common\model\quickapp\Quickapp;

class Jump extends BaseModel
{

    protected $name = 'jump';


    public function getAdminNameAttr($value, $data)
    {
        return Admin::where('id', $data['admin_id'])->value('name');
    }


    public function getPlatformNameAttr($value, $data)
    {
        return Quickapp::where('id', $data['platform'])->value('name');
    }
}
